package ModelLayer;

public class PartOrder {
	
	//private Order order;
	private String deliveryStatus;
	private String deliveryDate;
	private int amount;
	private Product product;
	
	public PartOrder()
	{
		
	}
	
	public PartOrder(Product product, int amount, String deliveryStatus, String deliveryDate)
	{
		this.amount = amount;
		this.product = product;
		this.setDeliveryDate(deliveryDate);
		this.setDeliveryStatus(deliveryStatus);
	}
	
	public PartOrder(Product product, int amount)
	{
		this.amount = amount;
		this.product = product;
		deliveryDate = "5 dage fra bestilling";
		deliveryStatus = "Ikke leveret";
	}

	
	/**
	 * @return the amount
	 */
	public int getAmount() {
		return amount;
	}

	/**
	 * @return the product
	 */
	public Product getProduct() {
		return product;
	}
	
	
	/**
	 * @param amount the amount to set
	 */
	public void setAmount(int amount) {
		this.amount = amount;
	}

	/**
	 * @param product the product to set
	 */
	public void setProduct(Product product) {
		this.product = product;
	}


	public String getDeliveryStatus() {
		return deliveryStatus;
	}


	public void setDeliveryStatus(String deliveryStatus) {
		this.deliveryStatus = deliveryStatus;
	}


	public String getDeliveryDate() {
		return deliveryDate;
	}


	public void setDeliveryDate(String deliveryDate) {
		this.deliveryDate = deliveryDate;
	}
	
	public double getTotalPrice()
	{
		return product.getSalesPrice() * getAmount(); 
	}

}
